﻿<UserControl x:Class="CCSManager.Products"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Height="527" Width="623" xmlns:my="http://schemas.microsoft.com/wpf/2008/toolkit">
    <Border Width="Auto" Height="524" Background="Gainsboro" CornerRadius="20">
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="374*" />
                <ColumnDefinition Width="247*" />
            </Grid.ColumnDefinitions>
            <TabControl Style="{DynamicResource SimpleTabControl}" Margin="12,90,12,0" Name="myInfoTabs" Grid.ColumnSpan="2" Height="149" VerticalAlignment="Top">
                <TabItem Style="{DynamicResource SimpleTabItem}" Header="Applications" Name="appsTabItem" TabIndex="10">
                    <Grid>
                        <my:DataGrid FontSize="11" BorderBrush="Transparent" AutoGenerateColumns="False" Margin="0,0,1,-4" Name="productDataGrid" VerticalContentAlignment="Stretch" SelectionChanged="productDataGrid_SelectionChanged">
                            <my:DataGrid.Columns>
                                <my:DataGridTextColumn Binding="{Binding Name}" Header="Name" IsReadOnly="True" Width="Auto" />
                                <my:DataGridTextColumn Binding="{Binding Version}" Header="Version" IsReadOnly="True" Width="Auto" />
                                <my:DataGridTextColumn Binding="{Binding TrialLengthInDays}" Header="Trial Length (Days)" IsReadOnly="True" Width="SizeToHeader" />
                                <my:DataGridTextColumn Binding="{Binding LicensesPerInvoice}" Header="Lic. Per Invoice" IsReadOnly="True" Width="SizeToHeader" />
                                <my:DataGridTextColumn Binding="{Binding Activations}" Header="Activations" IsReadOnly="True" Width="SizeToHeader" />
                                <my:DataGridTextColumn Binding="{Binding Exceptions}" Header="Exceptions" IsReadOnly="True" Width="SizeToHeader" />
                                <my:DataGridTextColumn Binding="{Binding Issues}" Header="Issues" IsReadOnly="True" Width="SizeToHeader" />
                                <my:DataGridTextColumn Binding="{Binding Registrations}" Header="Registrations" IsReadOnly="True" Width="SizeToHeader" />
                            </my:DataGrid.Columns>
                        </my:DataGrid>
                    </Grid>
                </TabItem>
                <TabItem Style="{DynamicResource SimpleTabItem}" Header="Team" Name="devTokensTabItem" TabIndex="9">
                    <Grid Height="Auto" Name="grid1">
                        <Label Height="28" Margin="5.622,4,0,0" Name="label9" VerticalAlignment="Top" HorizontalAlignment="Left" Width="129">Add Team Member:</Label>
                        <TextBox Height="23" Margin="184,7,50,0" Name="newTeamMemberEmailTextBox" VerticalAlignment="Top" />
                        <Button Height="23" HorizontalAlignment="Right" Margin="0,6,10,0" Name="addTeamMemberButton" VerticalAlignment="Top" Click="addTeamMemberButton_Click" Width="29.7">Add</Button>
                        <my:DataGrid Margin="6,35,6,6" Name="teamDataGrid" BorderBrush="Transparent" />
                        <Label Height="28" Margin="131,4,0,0" Name="label10" VerticalAlignment="Top" HorizontalAlignment="Left" Width="55">E-mail</Label>
                    </Grid>
                </TabItem>
            </TabControl>
            <ComboBox Height="23" Margin="101,57,11,0" Name="activeTeamComboBox" VerticalAlignment="Top" SelectionChanged="activeTeamComboBox_SelectionChanged" Text="" DropDownClosed="activeTeamComboBox_DropDownClosed" DropDownOpened="activeTeamComboBox_DropDownOpened" Grid.ColumnSpan="2">
                <ComboBox.Items>
                    <ComboBoxItem Content="Please select an active team" IsSelected="True"/>
                </ComboBox.Items>
            </ComboBox>
            <Label Height="28" HorizontalAlignment="Left" Margin="12,56,0,0" Name="activeTeamLabel" VerticalAlignment="Top" Width="83" FontWeight="Normal" HorizontalContentAlignment="Center">Active Team</Label>
            <GroupBox Header="Add a New Application" Margin="11,0,13,12" Name="groupBox1" Padding="0" Height="265" VerticalAlignment="Bottom" Grid.ColumnSpan="2">
                <Grid Height="Auto">
                    <Label Height="28" HorizontalAlignment="Left" Margin="6,40,0,0" Name="label1" VerticalAlignment="Top" Width="120">Application Name</Label>
                    <TextBox Height="23" Margin="132,42,6,0" Name="appNameTextBox" TabIndex="0" VerticalAlignment="Top" />
                    <Label Height="28" HorizontalAlignment="Left" Margin="6,74,0,0" Name="label2" VerticalAlignment="Top" Width="120">Version</Label>
                    <TextBox GotFocus="majorVersionTextBox_GotFocus" Height="23" HorizontalAlignment="Left" HorizontalContentAlignment="Center" LostFocus="majorVersionTextBox_LostFocus" Margin="132,76,0,0" Name="majorVersionTextBox" TabIndex="1" TextChanged="majorVersionTextBox_TextChanged" ToolTip="Major Version" VerticalAlignment="Top" Width="28">0</TextBox>
                    <Label Height="28" HorizontalAlignment="Left" Margin="6,108,0,0" Name="label3" VerticalAlignment="Top" Width="120">Release Date</Label>
                    <Label HorizontalAlignment="Left" Margin="6,142,0,0" Name="label4" Width="120" Height="28.04" VerticalAlignment="Top">Licenses Per Invoice</Label>
                    <TextBox GotFocus="licensesTextBox_GotFocus" HorizontalAlignment="Left" HorizontalContentAlignment="Center" LostFocus="licensesTextBox_LostFocus" Margin="132,144,0,0" Name="licensesTextBox" TabIndex="6" TextChanged="licensesTextBox_TextChanged" Width="28" Height="23.04" VerticalAlignment="Top">0</TextBox>
                    <Label HorizontalAlignment="Left" Margin="6,173,0,0" Name="label5" Width="120" Height="28.04" VerticalAlignment="Top">Trial Length in Days</Label>
                    <TextBox GotFocus="trialTextBox_GotFocus" HorizontalAlignment="Left" HorizontalContentAlignment="Center" LostFocus="trialTextBox_LostFocus" Margin="132,175,0,0" Name="trialTextBox" TabIndex="7" TextChanged="trialTextBox_TextChanged" Width="28" Height="23.04" VerticalAlignment="Top">0</TextBox>
                    <my:DatePicker Height="24" Margin="132,109,0,0" Name="releaseDatePicker" TabIndex="5" VerticalAlignment="Top" HorizontalAlignment="Left" Width="113.01" />
                    <TextBox GotFocus="minorVersionTextBox_GotFocus" Height="23" HorizontalContentAlignment="Center" LostFocus="minorVersionTextBox_LostFocus" Margin="173,76,0,0" Name="minorVersionTextBox" TabIndex="2" TextChanged="minorVersionTextBox_TextChanged" ToolTip="Minor Version" VerticalAlignment="Top" HorizontalAlignment="Left" Width="28">0</TextBox>
                    <TextBox GotFocus="buildTextBox_GotFocus" Height="23" HorizontalAlignment="Left" HorizontalContentAlignment="Center" LostFocus="buildTextBox_LostFocus" Margin="213,76,0,0" Name="buildTextBox" TabIndex="3" TextChanged="buildTextBox_TextChanged" ToolTip="Build Number" VerticalAlignment="Top" Width="28">0</TextBox>
                    <TextBox GotFocus="revisionTextBox_GotFocus" Height="23" HorizontalContentAlignment="Center" LostFocus="revisionTextBox_LostFocus" Margin="253,76,0,0" Name="revisionTextBox" TabIndex="4" TextChanged="revisionTextBox_TextChanged" ToolTip="Revision Number" VerticalAlignment="Top" HorizontalAlignment="Left" Width="27.23">0</TextBox>
                    <Button Click="saveButton_Click" Height="23" HorizontalAlignment="Left" Margin="9,0,0,12" Name="saveButton" TabIndex="8" VerticalAlignment="Bottom" Width="117">Add Application</Button>
                    <Label Height="28" HorizontalAlignment="Left" Margin="160,75,0,0" Name="label6" VerticalAlignment="Top" Width="13">.</Label>
                    <Label Height="28" HorizontalAlignment="Left" Margin="200,75,0,0" Name="label7" VerticalAlignment="Top" Width="13">.</Label>
                    <Label Height="28" HorizontalAlignment="Left" Margin="240,75,0,0" Name="label8" VerticalAlignment="Top" Width="13">.</Label>
                    <Label Height="28" Margin="6,6,6,0" Name="teamLabel" VerticalAlignment="Top" ContentStringFormat="For Team {0}">(Please select a team from the Active Team list above)</Label>
                </Grid>
            </GroupBox>
            <Label Height="36" Margin="12,11,11,0" Name="label11" VerticalAlignment="Top" FontSize="18" Grid.ColumnSpan="2">New Product Registration</Label>
        </Grid>
    </Border>
</UserControl>
